use model_graph_types::{
    database::DataSource,
    modeling::{Class, ClassPersistence, ModelingSqlGenerator},
};
use sqlite_connector::SqliteSqlGenerator;

pub async fn class_struct_sql(
    meta_datasource: &DataSource,
    class: Class,
    persistence: ClassPersistence,
) -> anyhow::Result<String> {
    //

    let sql = SqliteSqlGenerator::default()
        .class_struct_sql(meta_datasource, class, persistence)
        .await?;

    Ok(sql)
}
